package cn.edu.scau.cmi.xuxingao.adapter;

import java.util.List;

public class AdapterOfClass extends SortUtil implements Target {
	
	public void sortStudent(List<Integer> intList, List<Student> stuList) {
		for(int i=0;i<intList.size();i++) {
			int id = intList.get(i);
			for(int j=i;j<intList.size();j++) {
				if(id==stuList.get(j).getId()) {
					Student temp = stuList.get(i);
					stuList.set(i, stuList.get(j));
					stuList.set(j,temp);	
				}
			}
		}
	}
}
